//
//  UIView+Extension.swift
//  123
//
//  Created by pangjiaxing on 15/12/28.
//  Copyright © 2015年 pangjiaxing. All rights reserved.
//

import UIKit

extension UILabel{
    convenience  init(textColor:UIColor,fontsize:CGFloat) {
        
        self.init()
        self.textColor=textColor;
        self.font=UIFont.systemFontOfSize(fontsize)
        
    }
}

extension UIButton{
    convenience init(textColor:UIColor,fontsize:CGFloat){
        self.init()
        self.setTitleColor(textColor, forState: UIControlState.Normal)
        self.titleLabel?.font=UIFont.systemFontOfSize(fontsize)
    }
}